-- upgrade_equip
-- create by wangy
-- 装备升级、锻造

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        if prop[2] == "magic" then
            desc = string.gsub(desc, "{0}", getLocStr("prop_upgrade_equip2"));
        elseif prop[2] == "physic" then
            desc = string.gsub(desc, "{0}", getLocStr("prop_upgrade_equip1"));
        elseif prop[2] == "forging" then
            desc = getLocStr("prop_upgrade_equip3");
        end

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};
